//
//  GOSprite.m
//  BetterPong
//
//  Created by Samuel Goodwin on 2/21/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import "GOSprite.h"


@implementation GOSprite
//Speed Vector Methods
- (double)velocity_x
{
	return velocity_x;
}

- (void)setVelocity_x:(int)new_speed
{
	velocity_x = new_speed;
}

- (double)velocity_y
{
	return velocity_y;
}

- (void)setVelocity_y:(int)new_speed
{
	velocity_y = new_speed;
}

//Drawing methods
- (NSBezierPath *)shape
{
	return shape;
}

//Customization
- (void)setColor:(NSColor *)aColor
{
	[aColor retain];
	[color release];
	color = aColor;
}

//Geometry
- (NSPoint)center
{
	return center;
}

//Special inits
- (id)initWithPosition:(NSPoint)aPoint;
{
	[super init];
	center = aPoint;
	return self;
}

- (id)init
{
	return [self initWithPosition:NSMakePoint(0.0, 0.0)];
}


@end
